home *** CD-ROM | disk | FTP | other *** search
/ PC Shareware 1997 February / PC Shareware 1997-02.iso / programy / e! / technote / ewtech.$16 / ewtech.016
Encoding:
Text File  |  1995-03-05  |  1.5 KB  |  52 lines

  1. E! for Windows - Technical Note #016
  2. ***************************************************************
  3. Syntax Highlighting - Specifying classes in regular expressions
  4. ***************************************************************
  5.  
  6. When specifying a regular expression as a parameter for one of the
  7. definition statements in an HDF file, you should take care of the
  8. following:
  9.  
  10. 1. The < and % characters at the beginning of the expression or > and $
  11. at the end of the expression are ignored. When working for the Syntax
  12. Highlighting process, the regular expression parser ignores the string
  13. context and only consider the current token. Thus there is no such things
  14. like an "End of Line" or a "Beginning of Line". These special characters
  15. are ignored in that case.
  16.  
  17. Example:
  18.  
  19.        Const <%[0-9a-z_]#
  20.  
  21. is the same as
  22.  
  23.        Const %[0-9a-z_]#
  24.  
  25.  
  26. 2. When specifying a class with ranges, you should define uppercase and
  27. lowercase ranges only when the language is case sensitive. Otherwise
  28. specify only lowercase or uppercase ranges (which is the same).
  29.  
  30. Examples:
  31.  
  32. The following statements are correct:
  33.  
  34.     Case
  35.     Const [0-9a-zA-Z]#[?%&#@$]
  36.  
  37. This one is not correct if the Case statement is not used:
  38.  
  39.     Const [0-9a-zA-Z]#[?%&#@$]
  40.  
  41. Use this one instead:
  42.  
  43.     Const [0-9a-z]#[?%&#@$]
  44.  
  45. Failing to do so will cause the parser not to function correctly.
  46.  
  47. THESE REMARKS DO NOT APPLY TO REGULAR EXPRESSIONS USED IN THE SEARCH
  48. DIALOG BOX OF E!.
  49.  
  50. Patrick Philippot
  51. 12/30/94
  52.